package it.upnp.controlpoint;

import org.apache.log4j.Logger;
import org.cybergarage.upnp.ControlPoint;
import org.cybergarage.upnp.Device;
import org.cybergarage.upnp.DeviceList;

public class ControlPointUtilities {

	public static void printDevices(ControlPoint controlPoint, Logger logger) {

		DeviceList devList = controlPoint.getDeviceList();
		for(int i=0 ; i<devList.size() ; i++) {
			Device dev = devList.getDevice(i);
			logger.debug("[" + i + "] " + dev.getFriendlyName());
		}

	}
	
}
